package com.situ.mall.pojo.entity.product;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sun Huijuan
 * @since 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class NewProduct implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private String name;

    private String image;

    @TableField("product_id")
    private Long productId;

    @TableLogic
    private Integer deleted;

    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
